<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <script>

        const body = document.body;
        for (let i = 0; i < 1000; i++) {
            // 创建元素
            const el = document.createElement('div');
            el.innerText = i + 1;
            // 追加元素
            body.appendChild(el);
        }

    </script>

</body>
</html>